package com.hcbd.tdwt.ui.xingyu.vo;

import com.hcbd.tdwt.util.AppDatabase;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;

import java.io.Serializable;

@Table(database = AppDatabase.class)
public class Position implements Serializable {

    @PrimaryKey(autoincrement = true)
    public int id;
    @Column
    private int number;
    //经度
    @Column
    private double longitude;
    //纬度
    @Column
    private double latitude;
    //海拔
    @Column
    private double altitude;
    //时间戳(秒)
    @Column
    private long time;


    //定位类型:BD("北斗定位"),GPS("GPS定位"),RN("RN定位"),RD("RD定位"),APP("手机定位"),GPRS("基站定位"),OTHERS("其他定位");
    private String type;

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getAltitude() {
        return altitude;
    }

    public void setAltitude(double altitude) {
        this.altitude = altitude;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Position{" +
                "longitude=" + longitude +
                ", latitude=" + latitude +
                ", altitude=" + altitude +
                ", time=" + time +
                ", type='" + type + '\'' +
                '}';
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }
}
